package com.autonavi.collapse.task;

import com.autonavi.collapse.task.model.TaskConfig;
import com.autonavi.collapse.task.model.TaskContext;
import com.autonavi.collapse.task.model.TaskTemplate;

import java.util.List;

public interface TaskFactory {

    List<TaskConfig> generateTask(TaskTemplate taskTemplate);

    void init() throws Exception;

    void destory();

    TaskExecutor create(TaskContext context);

    String getType();

}
